<?php
// 获得当前已回复提问列表
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");
include_once("d_getLoginInfo.php");

if(isset($_GET["msgID"]) && isset($_GET["docID"])){
    $msgID = $_GET["msgID"];
    $docID = $_GET["docID"];
}else{
    echo"<script>alert('参数错误！请稍后重试！');location='doc_ControlReplayMsg.php';</script>";
    exit();
}

$del = "DELETE FROM replay_msg_infos WHERE msg_ID = '".$msgID."' AND doc_ID = '".$docID."'";
$result = mysqli_query($connect_DB,$del);
if($result){
    echo"<script>alert('删除成功！');location='doc_ControlReplayMsg.php';</script>";
}else{
    echo"<script>alert('删除失败！请稍后重试！');location='doc_ControlReplayMsg.php';</script>";
}

$connect_DB->close();
?>